package service.impl;

import java.util.Iterator;
import java.util.List;

import domain.Question;

public class IteratorModifyImpl {
	
	
	@SuppressWarnings("null")
	public Iterator<Question> sortQuestionIterator(Iterator<Question> iter){
		List<Question> listTemp=null;
		Question question=null;
		while(iter.hasNext()){
			question=iter.next(); 
			if(question!=null)
			listTemp.add(question);
				}
		Iterator<Question> iterReturn=listTemp.iterator();
		return iterReturn;
	}
}
